<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <title>签到有礼</title>
    <meta name="viewport" content="user-scalable=no">
  	<meta http-equiv="pragma" content="no-cache">
  	<meta http-equiv="cache-control" content="no-cache">
  	<meta http-equiv="expires" content="0">
  	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
  	<meta http-equiv="description" content="This is my page">
    <link rel="stylesheet" type="text/css" href="static/weixin/css/common.css">
    <link rel="stylesheet" type="text/css" href="static/weixin/font/css/font-awesome.css">
	<!-- <link rel="stylesheet" href="static/weixin/plug/weui/css/weui.css"> -->
	<link rel="stylesheet" href="static/weixin/css/qiandao_style.css">
	<!-- <script type="text/javascript" src="static/weixin/js/myJs.js"></script> -->
  </head>

  <body>
    <p class="login_title"><a href="./weixin/vip/index">< 首页</a></p>
    <div class="sign_top_box">
    <p class="just-qiandao-sign_total">本月连续签到 <span style="font-size: 6vw;color: #FFEB42;">${pd.data.sustain_day }</span> 天，累计签到 <span style="font-size: 6vw;color: #FFEB42;">${pd.data.sign_total } </span> 天</p>
    	<c:choose>
    	<c:when test="${pd.data.is_sign }">
      	<p class="just-qiandao qiandao-active"></p>
      	</c:when>
      	<c:otherwise>
      	<a href="./weixin/vip/sign?openid=${pd.openid }"><p class="just-qiandao qiandao-sprits"></p></a>
      	</c:otherwise>
      	</c:choose>
      <%-- <p class="float_right just-qiandao-sustain_day"> 连续签到 <span style="font-size: 5vw;color: #b25d06;">${pd.data.sustain_day }</span> 天</p> --%>
    </div>
    <div class="qiandao-clear-box">
		<%-- <ul class="sign_ul" id="list">
		<!-- <li>
			<span class="sign_detail">签到积分奖励</span>
			<span class="sign_time">2027-11-27 15:53</span>
			<span class="sign_code">+1分</span>
		</li> -->
		<c:choose>
			<c:when test="${empty pd.data.signs}">
			<p style="font-size: 4vw;color: #ada6a6;">没有签到记录</p>
			</c:when>
			<c:otherwise>
			<c:forEach items="${pd.data.signs }" var="signs">
			<li>
				<span class="sign_detail">${signs.note }</span>
				<span class="sign_time">${signs.created_s }</span>
				<span class="sign_code">+${signs.reward }分</span>
			</li>
		</c:forEach>
			</c:otherwise>
		</c:choose>
			
		</ul> --%>
		<div class="qiandao-con clear">
                <div class="qiandao-left">
                    <div class="qiandao-left-top clear">
                        <div class="current-date">2016年1月6日</div>
                        <!-- <div class="qiandao-history qiandao-tran qiandao-radius" id="js-qiandao-history">我的签到</div> -->
                    </div>
                    <div class="qiandao-main" id="js-qiandao-main">
                        <ul class="qiandao-list" id="js-qiandao-list">
                        </ul>
                    </div>
                </div>
        </div>
        <div class="qiandao-bottom">
                    <div class="qiandao-rule-list">
                        <h4>签到规则</h4>
                        <p>签到每天1积分奖励</p>
                        <p>连续签到7天额外奖励5积分，累计签到10天额外奖励10积分</p>
                    </div>
                    <div class="qiandao-rule-list">
                        <h4>其他说明</h4>
                        <p>如果中间有一天间断未签到的，重先开始计算连续签到时间。</p>
                        <p>1积分等价于消费1元人民币</p>
                    </div>
        </div>
	</div>
	<!-- <div class="weui-loadmore">
		<i class="weui-loading"></i> <span class="weui-loadmore__tips">正在加载</span>
	</div> -->
</body>
<script type="text/javascript" src="static/weixin/js/jquery-2.1.3.min.js"></script>
<script type="text/javascript" src="static/weixin/js/qiandao_js.js"></script>
<script type="text/javascript">
var dateAr = ${pd.data.days}
qiandaoInit(dateAr);
</script>

</html>
